﻿using MoneyWentWhere.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MoneyWentWhere.WinFormsUI.UI
{
    public interface IDialogBoxService
    {
        void ShowMessage(String format, params object[] args);
    }

    class DialogBoxService : IDialogBoxService
    {
        public void ShowMessage(String format, params object[] args)
        {
            MessageBox.Show(String.Format(format, args));
        }       
    }

    class DummyDialogBoxService : IDialogBoxService
    {
        public void ShowMessage(string format, params object[] args) { }
    }
}
